package chouxiang2;

public abstract class animal2 {
    private String name;
    private int age;
    public animal2(String name, int age) {
        this.name = name;
        this.age = age;
    }
    public animal2() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
    public abstract void eat();
}